﻿<UserControl x:Class="Skynet.WPF4.Views.MultiTouch.MultiTouchView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:touch="clr-namespace:Skynet.WPF4.Views.MultiTouch"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             ManipulationStarting="UserControl_ManipulationStarting"
             ManipulationDelta="UserControl_ManipulationDelta"
              ManipulationInertiaStarting="UserControl_ManipulationInertiaStarting">
    <UserControl.Resources>
        <MatrixTransform x:Key="InitialMatrixTransform">
            <MatrixTransform.Matrix>
                <Matrix OffsetX="200" OffsetY="200"/>
            </MatrixTransform.Matrix>
        </MatrixTransform>
    </UserControl.Resources>
    <Canvas>        
        <!--
        <touch:ImageTouch Source="pack://Application:,,,/Skynet.WPF4;component/Images/images.jpg" IsManipulationEnabled="True" Canvas.Left="122" Canvas.Top="55" ></touch:ImageTouch>
        -->        
        <Rectangle Fill="Red" Name="manRect"
                 Width="200" Height="200" 
                 RenderTransform="{StaticResource InitialMatrixTransform}"
                 IsManipulationEnabled="true" />
    </Canvas>
</UserControl>
